package com.foreknow.demo8;

public class Student {
    public String name;
    public static int count; //静态属性

    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "赵四";
        Student.count = 1;

        Student s2 = new Student();
        s2.name ="王五";
        Student.count = 100;

        System.out.println(s1.name);
        System.out.println(s1.count);
        System.out.println("--------------------------");
        System.out.println(s2.name);
        System.out.println(s2.count);
    }

}
